package com.philips.work.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.philips.common.core.annotation.Excel;
import com.philips.common.core.web.domain.BaseEntity;

/**
 * 供应商对象 yw_supplier
 * 
 * @author philips
 * @date 2025-05-22
 */
public class YwSupplier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 供应商主键ID */
    private Long ids;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 父级供应商ID */
    private Long parentId;

    /** 祖级列表。理论上只允许3级机构，例：0,1,2或0,1或0 */
    private String ancestors;

    /** 负责人 */
    @Excel(name = "负责人")
    private String leader;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 供应商状态（0关停 1正常） */
    @Excel(name = "供应商状态", readConverterExp = "0=关停,1=正常")
    private String status;

    /** 数据创建时间 */
    private Date addTime;

    /** 最后更新时间 */
    private Date upTime;

    public void setIds(Long ids) 
    {
        this.ids = ids;
    }

    public Long getIds() 
    {
        return ids;
    }

    public void setSupplierName(String supplierName)
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName()
    {
        return supplierName;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public void setAncestors(String ancestors) 
    {
        this.ancestors = ancestors;
    }

    public String getAncestors() 
    {
        return ancestors;
    }

    public void setLeader(String leader) 
    {
        this.leader = leader;
    }

    public String getLeader() 
    {
        return leader;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    public void setUpTime(Date upTime) 
    {
        this.upTime = upTime;
    }

    public Date getUpTime() 
    {
        return upTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ids", getIds())
            .append("supplierName", getSupplierName())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("leader", getLeader())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("status", getStatus())
            .append("addTime", getAddTime())
            .append("upTime", getUpTime())
            .toString();
    }
}
